package com.top10.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author su
 * @since 2018-09-29
 */
@TableName("tb_goods")
public class Goods extends Model<Goods> {

    private static final long serialVersionUID = 1L;

    /**
     * 序号,主键,自增,表唯一
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 主键,全局唯一
     */
	@TableField("uuid")
	private String goodsuuid;
    /**
     * 商品名称
     */
	private String name;
    /**
     * 所在商店UUID
     */
	@TableField("shop_uuid")
	private String shopUuid;
	@TableField("supplier_uuid")
	private String supplierUuid;
    /**
     * 品牌UUID
     */
	@TableField("brand_uuid")
	private String brandUuid;
    /**
     * 类型UUID
     */
	@TableField("category_uuid")
	private String categoryUuid;
    /**
     * 商品的国际类型
     */
	@TableField("int_category_uuid")
	private String intCategoryUuid;
	private String attributes;
    /**
     * 标签，每个项以,分割
     */
	private String tags;
    /**
     * 关键字，每个项以,分割
     */
	private String keyword;
    /**
     * 浏览次数
     */
	@TableField("view_count")
	private Integer viewCount;
    /**
     * 商品封面
     */
	private String show;
    /**
     * 商品概要
     */
	private String summary;
    /**
     * 商品图文介绍，HTML
     */
	private String discription;
    /**
     * 可选快递UUID。用,分割
     */
	@TableField("express_uuids")
	private String expressUuids;
    /**
     * 推荐类型{0:未推荐,1:推荐}
     */
	private Integer recommend;
    /**
     * 推荐到期时间
     */
	@TableField("recommend_end")
	private Date recommendEnd;
    /**
     * 是否为明星单品
     */
	private Boolean isStar;
    /**
     * 商品状态，0：待上架，1：已上架，2：已下架
     */
	private Integer status;
    /**
     * 1：合作商家商品，2：自营店商品（供应商）
     */
	private Integer type;
    /**
     * 是否删除
     */
	private Boolean isdeleted;
    /**
     * 创建时间
     */
	private Date createtime;
    /**
     * 上架时间
     */
	@TableField("start_time")
	private Date startTime;
    /**
     * 下架时间
     */
	@TableField("end_time")
	private Date endTime;
    /**
     * 创建者
     */
	private String creator;
    /**
     * 更新时间
     */
	private Date updatetime;
    /**
     * 修改者
     */
	private String mender;
    /**
     * 是否团购精品推荐
     */
	private Boolean isBoutique;
    /**
     * 全球购推荐
     */
	private Boolean qqgBoutique;
    /**
     * 添加到全球购的更新时间
     */
	@TableField("qqg_update_time")
	private Date qqgUpdateTime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getGoodsuuid() {
		return goodsuuid;
	}

	public void setGoodsuuid(String goodsuuid) {
		this.goodsuuid = goodsuuid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getShopUuid() {
		return shopUuid;
	}

	public void setShopUuid(String shopUuid) {
		this.shopUuid = shopUuid;
	}

	public String getSupplierUuid() {
		return supplierUuid;
	}

	public void setSupplierUuid(String supplierUuid) {
		this.supplierUuid = supplierUuid;
	}

	public String getBrandUuid() {
		return brandUuid;
	}

	public void setBrandUuid(String brandUuid) {
		this.brandUuid = brandUuid;
	}

	public String getCategoryUuid() {
		return categoryUuid;
	}

	public void setCategoryUuid(String categoryUuid) {
		this.categoryUuid = categoryUuid;
	}

	public String getIntCategoryUuid() {
		return intCategoryUuid;
	}

	public void setIntCategoryUuid(String intCategoryUuid) {
		this.intCategoryUuid = intCategoryUuid;
	}

	public String getAttributes() {
		return attributes;
	}

	public void setAttributes(String attributes) {
		this.attributes = attributes;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public Integer getViewCount() {
		return viewCount;
	}

	public void setViewCount(Integer viewCount) {
		this.viewCount = viewCount;
	}

	public String getShow() {
		return show;
	}

	public void setShow(String show) {
		this.show = show;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getDiscription() {
		return discription;
	}

	public void setDiscription(String discription) {
		this.discription = discription;
	}

	public String getExpressUuids() {
		return expressUuids;
	}

	public void setExpressUuids(String expressUuids) {
		this.expressUuids = expressUuids;
	}

	public Integer getRecommend() {
		return recommend;
	}

	public void setRecommend(Integer recommend) {
		this.recommend = recommend;
	}

	public Date getRecommendEnd() {
		return recommendEnd;
	}

	public void setRecommendEnd(Date recommendEnd) {
		this.recommendEnd = recommendEnd;
	}

	public Boolean getStar() {
		return isStar;
	}

	public void setStar(Boolean isStar) {
		this.isStar = isStar;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Boolean getIsdeleted() {
		return isdeleted;
	}

	public void setIsdeleted(Boolean isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String getMender() {
		return mender;
	}

	public void setMender(String mender) {
		this.mender = mender;
	}

	public Boolean getBoutique() {
		return isBoutique;
	}

	public void setBoutique(Boolean isBoutique) {
		this.isBoutique = isBoutique;
	}

	public Boolean getQqgBoutique() {
		return qqgBoutique;
	}

	public void setQqgBoutique(Boolean qqgBoutique) {
		this.qqgBoutique = qqgBoutique;
	}

	public Date getQqgUpdateTime() {
		return qqgUpdateTime;
	}

	public void setQqgUpdateTime(Date qqgUpdateTime) {
		this.qqgUpdateTime = qqgUpdateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Goods{" +
			", id=" + id +
			", goodsuuid=" + goodsuuid +
			", name=" + name +
			", shopUuid=" + shopUuid +
			", supplierUuid=" + supplierUuid +
			", brandUuid=" + brandUuid +
			", categoryUuid=" + categoryUuid +
			", intCategoryUuid=" + intCategoryUuid +
			", attributes=" + attributes +
			", tags=" + tags +
			", keyword=" + keyword +
			", viewCount=" + viewCount +
			", show=" + show +
			", summary=" + summary +
			", discription=" + discription +
			", expressUuids=" + expressUuids +
			", recommend=" + recommend +
			", recommendEnd=" + recommendEnd +
			", isStar=" + isStar +
			", status=" + status +
			", type=" + type +
			", isdeleted=" + isdeleted +
			", createtime=" + createtime +
			", startTime=" + startTime +
			", endTime=" + endTime +
			", creator=" + creator +
			", updatetime=" + updatetime +
			", mender=" + mender +
			", isBoutique=" + isBoutique +
			", qqgBoutique=" + qqgBoutique +
			", qqgUpdateTime=" + qqgUpdateTime +
			"}";
	}
}
